package xxl.ioc.dependencyproviders 
{
	import flash.utils.Dictionary;
	import xxl.ioc.Injector;
	/**
	 * ...
	 * @author XXL
	 */
	public class InjectorUsingProvider extends ForwardingProvider 
	{
		public var injector:Injector;
		
		public function InjectorUsingProvider(injector:Injector, provider:IDependencyProvider) 
		{
			super(provider);
			this.injector = injector;
		}
		
		override public function apply(targetType:Class, activeInjector:Injector, injectParameters:Dictionary):Object 
		{
			return provider.apply(targetType, injector, injectParameters);
		}
		
	}

}